package com.example.demo.mapper;

import com.example.demo.domain.entity.OperaLog;
import com.example.demo.domain.entity.User;
import com.example.demo.domain.entity.UserInfo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface UserMapper {

    /**
     *
     * @param name 用户名
     * @param passWord 密码
     * @return id
     */
    Integer login(String name, String passWord);

    void insertTestData(OperaLog data);

    List<User> findUserInfo();

    UserInfo findUserInfoById(Integer userId);

}
